
<!doctype html>
<html class="no-js">
<#include "../../common/header.ftl">
<script	src="${basePath}/js/userGrade/edit.js?v=201711021700"></script>
<head>
<meta charset="UTF-8">
<title>编辑会员等级</title>
<style>
	.foot{
		position: absolute;
		left: 10%;
		top: 90%;
	}
	.lable_text{
		padding:0px 8px;
	}
	.hide{
		display:none;
	}
	.readonly-input{
		background-color: #e2e2e2;
	}
	.left{
		float:left;
	    width: 45%;
	}
	.answer-tips{
		color:red;
	}
</style>
</head>
<body>
<div style="min-height: 80%; min-width: 90%; margin: 5% 5%;">
	<div style="width:80%;">
		<form class="layui-form layui-form-pane">
			<div class="layui-form-item">
				<label class="layui-form-label" style="width:112px;">等级名称*</label>
				<div class="layui-input-block">
						<input type="text"	name="name" required="" lay-verify="required"
						placeholder="请输入等级名称" value="${userGrade.name!}" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label" style="width:112px;">用户折扣*</label>
				<div class="layui-input-block">
						<input type="text"	name="discount" required="" lay-verify="required"
						placeholder="请输入折扣（1-100之间的整数）" value="${userGrade.discount!}" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label" style="width:112px;">默认等级*</label>
				<div class="layui-input-block">
					<input type="radio"  name="isDefault" value="1" title="是" <#if  userGrade.isDefault?? && userGrade.isDefault == 1>checked="checked"</#if> >
					<input type="radio"  name="isDefault" value="0" title="否" <#if !(userGrade.isDefault??) ||(userGrade.isDefault?? && userGrade.isDefault == 0)>checked="checked"</#if> >
				</div>
			</div>
		</form>
	</div>
	<div class="foot">
		<button type="button" class="layui-btn layui-btn-normal"
			id="save-button">
			<i class="layui-icon">&#xe605;</i>保存
		</button>
		<button type="button" class="layui-btn layui-btn-normal"
			id="close-button">
			<i class="layui-icon">&#x1006;</i>关闭
		</button>
	</div>
</div>
</body>
<script type="text/javascript">
	var basePath = "${basePath}";
	var init={
	 	gradeId:"${userGrade.id!}"
	}
	layui.use(['form','layer'], function() {
		var form = layui.form();
		var layer = layui.layer;
	});
</script>
</html>
